
'''
    log module

'''

import logging


LOG_CONF = {
    'filename': './root.log',
    'level': 'INFO',
    'format': '[%(asctime)-15s %(levelname)s %(filename)s \
                %(lineno)d %(process)d] %(message)s',
    'datefmt': "%Y-%m-%d %H:%M:%S"
}

logging.basicConfig(**LOG_CONF)


class Logger:
    @classmethod
    def debug(self, msg, *args):
        logging.debug(msg, *args)

    @classmethod
    def info(self, msg, *args):
        logging.info(msg, *args)

    @classmethod
    def warn(self, msg, *args):
        logging.warn(msg, *args)

    @classmethod
    def error(self, msg, *args):
        logging.error(msg, *args)
